package ru.store;

public class Item {
	private String id = null;
	private String type = null;
	private String name = null;
	private String vendor = null;
	private int year = 0;
	private float price = 0;
	private int count = 0;
	
	public Item(String id, String type, String name, String vendor, int year,
			float price, int count) {
		super();
		this.id = id;
		this.type = type;
		this.name = name;
		this.vendor = vendor;
		this.year = year;
		this.price = price;
		this.count = count;
	}
	
	public void setId(String id) {
		this.id = id;
	}
	
	public String getId() {
		return id;
	}
	
	public void setType(String type) {
		this.type = type;
	}
	
	public String getType() {
		return type;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setVendor(String vendor) {
		this.vendor = vendor;
	}

	public String getVendor() {
		return vendor;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public int getYear() {
		return year;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public float getPrice() {
		return price;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getCount() {
		return count;
	}
	
	public String toString() {
		return name;
	}
}
